package com.ruoyi.web.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

@Data
public class MachineTask {
    //状态
    private String status;
    //机台名称
    private String machineName;
    //机台编码
    private String machineNo;
    //车间名称
    private String workshopName;
    //类型
    private String type;
    //机型
    private String model;
    //分配
    private Double printAmount;
    //已完成
    private Double total;
    //生产单id
    private String produceId;
    //生产单编码
    private String produceNo;
    //印刷序列号
    private String producePieceNo;
    //贴标
    private String pieceview;
    //生产单状态
    private String produceStatus;
    //机长名称
    private String userName;
    //预计交货时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expectTime;

    //品种
    @TableField(exist = false)
    private String breed;
    //印张
    @TableField(exist = false)
    private String sheet;


    //分配总数
    @TableField(exist = false)
    private BigDecimal printAmountSum;
    //已完成总数
    @TableField(exist = false)
    private BigDecimal totalSum;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;
}